<SCRIPT SRC="highlight.js" TYPE="text/javascript"></SCRIPT>
<LINK REL=StyleSheet HREF="../regex.css" TYPE="text/css">
</HEAD>
<BODY BGCOLOR=white TEXT=black>
<DIV CLASS=top><DIV CLASS=logo><IMG SRC="../img/logo.gif" WIDTH=530 HEIGHT=100></DIV></DIV>
<DIV CLASS=btntop><A CLASS=btntop HREF="../tutorial.html" TARGET="_top">&nbsp;Tutorial&nbsp;</A><A CLASS=btntop HREF="../tools.html" TARGET="_top">&nbsp;Tools&nbsp;&amp;&nbsp;Languages&nbsp;</A><A CLASS=btntop HREF="../examples.html" TARGET="_top">&nbsp;Examples&nbsp;</A><A CLASS=btntop HREF="../reference.html" TARGET="_top">&nbsp;Reference&nbsp;</A></DIV>
<DIV CLASS=bodytext>
<H1>Opening and Closing Pair of a Specific HTML Tag</H1>
<DIV CLASS="regexbuddyregex">
<P><TT><SPAN ID="regex0" onMouseOver="regexbuddyhighlight('0')" onMouseOut="regexbuddyclear('0')">&lt;TAG</SPAN><SPAN ID="regex4" onMouseOver="regexbuddyhighlight('4')" onMouseOut="regexbuddyclear('4')">[^&gt;]</SPAN><SPAN ID="regex8" onMouseOver="regexbuddyhighlight('8')" onMouseOut="regexbuddyclear('8')">*</SPAN><SPAN ID="regex9" onMouseOver="regexbuddyhighlight('9')" onMouseOut="regexbuddyclear('9')">&gt;</SPAN><SPAN ID="regex10" onMouseOver="regexbuddyhighlight('10')" onMouseOut="regexbuddyclear('10')">(</SPAN><SPAN ID="regex11" onMouseOver="regexbuddyhighlight('11')" onMouseOut="regexbuddyclear('11')">.</SPAN><SPAN ID="regex12" onMouseOver="regexbuddyhighlight('12')" onMouseOut="regexbuddyclear('12')">*?</SPAN><SPAN onMouseOver="regexbuddyhighlight('10')" onMouseOut="regexbuddyclear('10')">)</SPAN><SPAN ID="regex15" onMouseOver="regexbuddyhighlight('15')" onMouseOut="regexbuddyclear('15')">&lt;/TAG&gt;</SPAN></TT></P>

<P>Options: dot matches newline; case insensitive</P>
</DIV>
<DIV CLASS="regexbuddytree"><UL CLASS="noindent"><LI CLASS="regexliteral"><A HREF="http://www.regular-expressions.info/characters.html"><SPAN ID="tree0" onMouseOver="regexbuddyhighlight('0')" onMouseOut="regexbuddyclear('0')">Match the characters &quot;&lt;TAG&quot; literally</SPAN></A><LI CLASS="regexcharclass"><A HREF="http://www.regular-expressions.info/charclass.html#negated"><SPAN ID="tree4" onMouseOver="regexbuddyhighlight('4')" onMouseOut="regexbuddyclear('4')">Match a single character not present in the list: one of the characters &quot;&gt;&quot;</SPAN></A><UL><LI CLASS="regexrepeat"><A HREF="http://www.regular-expressions.info/repeat.html"><SPAN ID="tree8" onMouseOver="regexbuddyhighlight('8')" onMouseOut="regexbuddyclear('8')">Between zero and unlimited times, as many times as possible, giving back as needed (greedy)</SPAN></A></UL><LI CLASS="regexliteral"><A HREF="http://www.regular-expressions.info/characters.html"><SPAN ID="tree9" onMouseOver="regexbuddyhighlight('9')" onMouseOut="regexbuddyclear('9')">Match the character &quot;&gt;&quot; literally</SPAN></A><LI CLASS="regexcapture"><A HREF="http://www.regular-expressions.info/brackets.html"><SPAN ID="tree10" onMouseOver="regexbuddyhighlight('10')" onMouseOut="regexbuddyclear('10')">Match the regular expression below and capture its match into backreference number 1</SPAN></A><UL><LI CLASS="regexspecial"><A HREF="http://www.regular-expressions.info/dot.html"><SPAN ID="tree11" onMouseOver="regexbuddyhighlight('11')" onMouseOut="regexbuddyclear('11')">Match any single character</SPAN></A><UL><LI CLASS="regexrepeat"><A HREF="http://www.regular-expressions.info/repeat.html#lazy"><SPAN ID="tree12" onMouseOver="regexbuddyhighlight('12')" onMouseOut="regexbuddyclear('12')">Between zero and unlimited times, as few times as possible, expanding as needed (lazy)</SPAN></A></UL></UL><LI CLASS="regexliteral"><A HREF="http://www.regular-expressions.info/characters.html"><SPAN ID="tree15" onMouseOver="regexbuddyhighlight('15')" onMouseOut="regexbuddyclear('15')">Match the characters &quot;&lt;/TAG&gt;&quot; literally</SPAN></A></UL></DIV>
<DIV CLASS="regexbuddyfooter"><P><A HREF="http://www.regexbuddy.com/analyze.html">Regular expression analyzed with RegexBuddy</A>.<BR>
HTML output from RegexBuddy adapted with a PowerGREP <A HREF="http://www.powergrep.com">search-and-replace sequence</A>.</P></DIV>
</DIV>
<DIV CLASS=side>
<TABLE CLASS=side CELLSPACING=0 CELLPADDING=4><TR><TD CLASS=sideheader>Welcome</TD></TR><TR><TD><A HREF="../tutorial.html" TARGET=_top>Tutorial</A></TD></TR><TR><TD><A HREF="../tools.html" TARGET=_top>Tools&nbsp;and&nbsp;Languages</A></TD></TR><TR><TD><A HREF="../examples.html" TARGET=_top>Examples</A></TD></TR><TR><TD><A HREF="../reference.html" TARGET=_top>Reference</A></TD></TR><TR><TD><A HREF="../about.html" TARGET=_top>About&nbsp;This&nbsp;Site</A></TD></TR><TR><TD><A HREF="../print.html" TARGET=_top>Download&nbsp;and&nbsp;Print</A></TD></TR></TABLE>
</DIV></BODY></HTML>
